/*
 * @Descripttion:
 * @version:
 * @Date: 2021-04-21 09:18:32
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2022-09-27 18:51:35
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */
const Layout = () => import('@/layout/index.vue')
//导入组件
const sysMenu = () => import('@/views/system/sysMenu.vue')
const sysUser = () => import('@/views/system/sysUser.vue')
const sysRole = () => import('@/views/system/sysRole.vue')
const sysDepartment = () => import('@/views/system/sysDepartment.vue')
const Tenant = () => import('@/views/system/Tenant.vue')
//注意事项：必须保证路由的name属性值是唯一的
export default [
  {
    path: '/system',
    component: Layout,
    name: 'system',
    meta: {
      title: '权限管理',
    },
    icon: 'Location',
    children: [
      {
        path: '/sysUser',
        name: 'sysUser',
        component: sysUser,
        meta: {
          title: '用户管理',
        },
      },
      {
        path: '/sysRole',
        name: 'sysRole',
        component: sysRole,
        meta: {
          title: '角色管理',
        },
      },
      {
        path: '/sysMenu',
        name: 'sysMenu',
        component: sysMenu,
        meta: {
          title: '菜单管理',
        },
      },
      {
        path: '/sysDepartment',
        name: 'sysDepartment',
        component: sysDepartment,
        meta: {
          title: '部门管理',
        },
      },
      {
        path: '/tenant',
        name: 'tenant',
        component: Tenant,
        meta: {
          title: '租户管理',
        },
      },
    ],
  },
]
